package hw04;

import hw04.grammar.productions.Fact;
import hw04.grammar.productions.Rule;

import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Answers {
	
	private static Map<String, Set<List<Object>>> relations = new HashMap<String, Set<List<Object>>>();
	
	public static Set<List<Object>> getRelation(String name) {
		if(relations.containsKey(name)) {
			return relations.get(name);
		}
		Set<List<Object>> relation = new HashSet<List<Object>>();
		relations.put(name, relation);
		return relation;
	}

	public static void addRule(Rule rule) {
		// TODO Auto-generated method stub
		
	}

	public static void addFact(Fact fact) {
		// TODO Auto-generated method stub
		
	}
}